package com.sj.common.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-03-23
 * Time: 下午 23:42
 * Description: 管理端保存用户参数
 *
 * @author xiaoqi
 * @since 2022-03-23
 */
@ApiModel("管理端保存用户参数")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminUserSaveParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    private Integer id;

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty("用户密码")
    @NotBlank(message = "用户密码不能为空")
    private String password;

    @ApiModelProperty("角色名")
    @NotBlank(message = "角色名不能为空")
    private String roleName;

}